# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2023年02月23日
"""
import docx
# from docx.enum.text import WD_ALIGN_PARAGRAPH

myDocument = docx.Document("散文名篇.docx")

myParagraph=myDocument.add_paragraph()
myRun1=myParagraph.add_run("第一个块,")
myRun1.font.size=docx.shared.Pt(16)
myRun2=myParagraph.add_run('第二个块')
myRun2.font.size=docx.shared.Pt(16)
myRun2.font.superscript=True
myParagraph.paragraph_format.left_indent=docx.shared.Inches(1)

myDocument.save("02散文名篇.docx")
